package com.asj.vivo.lock.service;

import com.asj.MainActivity;
import com.asj.MainActivityService;
import com.asj.R;
import com.asj.service.binding.BindingAffirmDeviceService;

/**
 * 分配页面服务
 * */
public class AllocationPageService {

    public static MainActivity mainActivity;

    public static void coreLoad(MainActivity mainActivityParam){
        //参数注入
        mainActivity = mainActivityParam;
        mainActivity.runOnUiThread(()->{
            //加载进度条页面
            mainActivity.setContentView(R.layout.load_page);
            //停止后台任务
            MainActivityService.stopMeService(mainActivityParam);
            //设备绑定条件判断
            BindingAffirmDeviceService.affirmDeviceBind(mainActivity);
        });
    }
}
